@model dynamic
@{
    Style.Include("nextitem.css").AtFoot();
    
    Orchard.ContentManagement.ContentItem next = Model.NextItem;
    Orchard.ContentManagement.ContentItem previous = Model.PreviousItem;         
}
<div id="nextPreviousContainerism">
    @if(next != null) {
        <p id="next">@Html.ItemDisplayLink(T("Next").ToString(), next)</p>
    }

    @if(previous != null) {
        <p id="previous">@Html.ItemDisplayLink(T("Previous").ToString(), previous)</p>
    }
</div>